<div id="search">
  <g:form url='[controller: "residentes", action: "search"]'
          id="residentesSearchForm"
          name="residentesSearchForm"
          method="get">
    <g:textField name="q" value="${params.q}" />
    <input type="submit" value="Find Residentes" />
  </g:form>
</div>